package com.hackintosh.order;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/19
 * @modified By：
 * @version: 1.0
 */
public class OrderingFood {

    public static void main(String[] args) {
        // 开店前准备
        Kitchen kitchen = new Kitchen();
        Command friedMushroomCommand = new FriedMushroomCommand(kitchen);
        Command bakeChickenWing = new BakeChickenWingCommand(kitchen);
        Waiter waiter = new Waiter();

        // TODO 批量处理，一次通知
        // 开门营业
        waiter.setCommand(friedMushroomCommand);
        waiter.notice();
        waiter.setCommand(bakeChickenWing);
        waiter.notice();
    }
}
